package com.freesky.biz.report.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Data
public class TReportProject implements java.io.Serializable{

    private static final long serialVersionUID = 1L;

    private String projectId;
    private String projectName;
    //1、未开始，2、进行中，3、已结束，4、暂停
    private String status;
    private Double totalBudget;
    private Double equityBudget;
    private Double relatedBudget;

    private Double sendAmount;
    private Long usedCount;
    private Double usedAmount;
    private Double usedOrderMoney;

    private Long refundCount;
    private Double refundAmount;
    private Double refundOrderMoney;

    private String beginTime;
    private String endTime;

    //数据日期
    private String dataTime;

    private String deptId;
    private String deptName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ExcelIgnore
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;

    public Map<String, Object> getParams() {
        if (params == null) {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }

}
